home *** CD-ROM | disk | FTP | other *** search
- Path: usenet.ufl.edu!vtigadi
- From: vtigadi@cis.ufl.edu (Vishwajit Tigadi)
- Newsgroups: comp.lang.c
- Subject: A problem with fprintf
- Date: 8 Jan 1996 23:15:26 GMT
- Organization: University of Florida, Computer Science Department
- Distribution: world
- Message-ID: <4cs8ie$5ru@no-names.nerdc.ufl.edu>
- NNTP-Posting-Host: yawl.cis.ufl.edu
- Originator: vtigadi@yawl.cis.ufl.edu
-
-
-
- hi!
-
- I am experiencing a peculiar problem with fprintf.
-
- I have a piece of code where the following statement fits in:
-
- fprintf(fp, "%s\n", src);
-
- fp is a file-pointer and src is a static array of characters. When the
- code is executed repeatedly, it fails at the above statement. The error
- message from the debugger is as follows:
-
- signal SEGV (segmentation violation) in malloc at 0xef778634
- malloc+0x150: st %o0, [%l5]
-
- fp is pointing to a file that has been opened and is not the problem.
- Does somebody have a clue?
-
- Thanks
- vishwajit
-
-